package com.ruoyi.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.service.mapper.ServiceOrderspackagesMapper;
import com.ruoyi.service.domain.ServiceOrderspackages;
import com.ruoyi.service.service.IServiceOrderspackagesService;

/**
 * 订单耗材包对应Service业务层处理
 * 
 * @author ZDL
 * @date 2024-11-27
 */
@Service
public class ServiceOrderspackagesServiceImpl implements IServiceOrderspackagesService 
{
    @Autowired
    private ServiceOrderspackagesMapper serviceOrderspackagesMapper;

    /**
     * 查询订单耗材包对应
     * 
     * @param orderspackagesId 订单耗材包对应主键
     * @return 订单耗材包对应
     */
    @Override
    public ServiceOrderspackages selectServiceOrderspackagesByOrderspackagesId(Long orderspackagesId)
    {
        return serviceOrderspackagesMapper.selectServiceOrderspackagesByOrderspackagesId(orderspackagesId);
    }

    /**
     * 查询订单耗材包对应列表
     * 
     * @param serviceOrderspackages 订单耗材包对应
     * @return 订单耗材包对应
     */
    @Override
    public List<ServiceOrderspackages> selectServiceOrderspackagesList(ServiceOrderspackages serviceOrderspackages)
    {
        return serviceOrderspackagesMapper.selectServiceOrderspackagesList(serviceOrderspackages);
    }

    /**
     * 新增订单耗材包对应
     * 
     * @param serviceOrderspackages 订单耗材包对应
     * @return 结果
     */
    @Override
    public int insertServiceOrderspackages(ServiceOrderspackages serviceOrderspackages)
    {
        return serviceOrderspackagesMapper.insertServiceOrderspackages(serviceOrderspackages);
    }

    /**
     * 修改订单耗材包对应
     * 
     * @param serviceOrderspackages 订单耗材包对应
     * @return 结果
     */
    @Override
    public int updateServiceOrderspackages(ServiceOrderspackages serviceOrderspackages)
    {
        return serviceOrderspackagesMapper.updateServiceOrderspackages(serviceOrderspackages);
    }

    /**
     * 批量删除订单耗材包对应
     * 
     * @param orderspackagesIds 需要删除的订单耗材包对应主键
     * @return 结果
     */
    @Override
    public int deleteServiceOrderspackagesByOrderspackagesIds(Long[] orderspackagesIds)
    {
        return serviceOrderspackagesMapper.deleteServiceOrderspackagesByOrderspackagesIds(orderspackagesIds);
    }

    /**
     * 删除订单耗材包对应信息
     * 
     * @param orderspackagesId 订单耗材包对应主键
     * @return 结果
     */
    @Override
    public int deleteServiceOrderspackagesByOrderspackagesId(Long orderspackagesId)
    {
        return serviceOrderspackagesMapper.deleteServiceOrderspackagesByOrderspackagesId(orderspackagesId);
    }
}
